<ion-view id="statequery" view-title="状态查询" cache-view="false" align-title="center" hide-tabs>
  <!-- 页眉 -->

  <ion-content class=" has-header scroll-content">
    <ion-refresher pulling-text="下拉刷新" on-refresh="doRefresh()"></ion-refresher>
    <!-- 内容 -->
    <div class ="main-top row">

      <div class ="col-80">
          <div on-tap="modal.show()" class ="content">
            <span>业务选择</span>
            <div class ="value">
              <span class ="defaultall">{{ value }}</span>
              <i class ="icon ion-chevron-down select-icon"></i>
            </div>

          </div>

        <div class ="content row">
          <div ng-click="start()" class ="col-50">
            <p style ="line-height: 30px; display: inline-block;height: 30px">开始</p>
            <div class ="time">
              <span class ="defaultstart">{{ starttime }}</span>
            </div>
          </div>
          <div ng-click="end()" class ="col-50" style ="margin-left: 5px">
            <span  style ="line-height: 30px;">结束</span>
            <div class ="time">
              <span  class ="defaultend">{{ endtimer }}</span>
            </div>
          </div>
        </div>
      </div>



      <div class ="col-20">
        <div class ="search-icon" ng-click="search()">
          <i class='icon ion-ios-search'></i>
        </div>

      </div>


      </div>









<div class ="main-container" style ="margin-bottom: 20px">

      <!-- 状态详情 -->

        <div class="list" ng-repeat ="list in ztcxlist">
          <div class="item">
            <table class="table">
              <tr  >
                  <td style ="width: 33%">
                    <span>[
                      <span>{{ list[0].businessId }}</span>
                      ]</span>
                  </td>
                  <td class="pay "> {{ list[0].businessName }} </td>
                  <td class="payType ">{{ list[0].backup1 }}</td>
              </tr>
              <tr>
                <td>付&nbsp; 款&nbsp; 方</td>
                <td class="tdClass">{{  list[0].sendAccount}}</td>
              </tr>
              <tr>
                <td>交易金额</td>
                <td class="tdClass">{{ list[0].amount }}</td>
              </tr>
              <tr >
                <td class="stateClass" colspan="3"  ><b>{{ list[0].description }}</b></td>
              </tr>


            </table>
          </div>
        </div>




      </div>





    </div>
    <!-- 业务选择模版-->
 <script id="templates/businesschoose.html" type="text/ng-template">
      <ion-modal-view>
        <ion-header-bar class="bar bar-header bar-positive">
          <h1 class="title">业务选择</h1>
          <button class="button button-clear button-primary" ng-click="modal.hide()">取消</button>
        </ion-header-bar>
        <ion-content class="padding has-header scroll-content" >
          <div class="list list-inset" >
          <ion-list >

            <ion-radio  ng-repeat="item in clientSideList"  class ="row"
                        ng-model="data.clientSide"
                        ng-value ="item.value"  ng-click="createContact(newUser)">
              <div class = "col" style ="width: 50%;float: left"><h2>{{item.key}}</h2></div>
              <div class = "col" style ="width: 50%;float: left">
                <h2>{{ item.value }}</h2>
                <h2>{{ item.code }}</h2>
              </div>
            </ion-radio>
          </ion-list>
          </div>
        </ion-content>
      </ion-modal-view>
    </script>
  </ion-content>

</ion-view>
